package XML;

import java.io.File;

public class DocumentXML {
	public TagXML radacina = null;
	public boolean hasInstance = false;
	public File f = null;
	public DocumentXML instance = null;
	
	public DocumentXML(TagXML r, String filename){
		this.radacina = r;
		this.f = new File(filename);
	}

	public TagXML getRadacina() {
		return radacina;
	}

	public void setRadacina(TagXML radacina) {
		this.radacina = radacina;
	}

	public DocumentXML getInstance() {
		return instance;
	}
	
	public void setXMLFile(String filename){
		this.f = new File(filename);
	}
	
	public File getXMLFile(){
		return f;
	}
	
	public void acceptVisitor(XMLVisitor v){
		v.visit(radacina);
	}
}
